package com.book.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wx
 * @since 2023-10-12 10:35:00
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("role_menu")
public class RoleMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色菜单表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 角色id
     */
    @TableField("rid")
    private Long rid;

    /**
     * 菜单id
     */
    @TableField("mid")
    private Long mid;

    /**
     * 预留字段
     */
    @TableField("attr1")
    private String attr1;

    @TableField("attr2")
    private Long attr2;


    public static final String ID = "id";

    public static final String RID = "rid";

    public static final String MID = "mid";

    public static final String ATTR1 = "attr1";

    public static final String ATTR2 = "attr2";

}
